package com.klun.spring4.c_five.five11;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

import java.util.HashMap;

// 通过 @ImportResource 引入 XML 配置文件
@Configuration
@ImportResource("classpath:spring/beans3.xml")
public class LongonAppConfig {

    // 2 自动注入 XML 文件文件中定义的 Bean
    public LogonService logonService(LogDao logDao){
        LogonService logonService = new LogonService();
        logonService.setLogDao(logDao);
        return logonService;
        // int[] arrs = int()[];
    }
}
